#@adminLayout()
#define main()
###页面显示的按钮 C:增加按钮,R:查询按钮/清空查询按钮,U:修改按钮,D:删除按钮,I:Excel导入按钮,E:Excel导出按钮,O:tr中操作列,B:checkBox复选框
#set(map={C:1,R:1,U:1,D:1,I:0,E:0,O:1},
aTh = [  "编号", "名称",  "省",  "市",  "县",  "具体位置",  "电话",  "手机",  "传真",  "邮编",  "邮箱",  "创建时间",  "创建人","状态" ],
aTd = [  "code","name",  "province",  "city",  "county",  "location",  "telephone",  "phone",  "fax",  "zipCode",  "mailbox",  "createAt",  "createAc","isDel" ])
<div class="card">
    #@cardIndex("企业信息管理","ciis/enterprise",map,aTh,aTd)
</div>
#end

###条件模糊查询
#define cardQuery()
    <div class="col-sm-4">
        <div class="form-group">
            <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>名称</lable>
            <input type="text" name="name" value="#(model.name??)"
                   class="form-control" placeholder="请输入名称">
            <i class="form-group__bar"></i>
        </div>
    </div>
    <div class="col-sm-4">
        <div class="form-group">
            <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>编号</lable>
            <input type="text" name="code" value="#(model.code??)"
                   class="form-control" placeholder="请输入编号">
            <i class="form-group__bar"></i>
        </div>
    </div>
#end
#define cardIndexTbody()
<td data-column="isDel">#(x.isDel==1?'已删除':'--')</td>
#end

